DEW.Slider = Backbone.View.extend({

    template: Handlebars.templates['slider'],

//    currentCategoryId: 0,

//    events: {
//        "click .category_link" : "changeCategory"
//    },

    initialize: function() {
//        this.listenTo(this.model, 'reset',  this.render);
    },

    render: function() {
//        var me = this;
//        var categories = _.map(this.model.toJSON(),function(model) {
//            model.active = me.currentCategoryId === model.id;
//            return model;
//        });
        this.$el.html(this.template({
//            categories: categories
        }));
        
        var flux = new window.flux.slider(this.$el.find("#slider"),{
            pagination: true
        });
    }

//    changeCategory: function(e) {
//        e.preventDefault();
//        this.currentCategoryId = parseInt($(e.target).attr("data-id"));
//        this.render();
//        this.trigger("changeCategory",this.currentCategoryId);
//    }
});


